//
//  ZQAdminCell.m
//  jianzhik
//
//  Created by huami on 2018/8/28.
//  Copyright © 2018年 WKWebView. All rights reserved.
//

#import "ZQAdminCell.h"
#import "ZQEditAmindPage.h"
#import "ZQ_GetCurrentViewNavTool.h"
@implementation ZQAdminCell
- (IBAction)editBtnClick:(id)sender {
    ZQEditAmindPage *vc = [ZQEditAmindPage new];
    vc.editModels = self.adModel;
    vc.title = @"管理员设置";
    [[ZQ_GetCurrentViewNavTool currentNC] pushViewController:vc animated:YES];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setAdModel:(ZQAdminModel *)adModel
{
    _adModel = adModel;
    self.nubLabel.text = [NSString stringWithFormat:@"%ld",(long)adModel.Id] ;
    self.userNameLabel.text = adModel.Username;
}

@end
